<?php
return array(
	
	'formView' => array(
		'fields' => array(
			'id' => false,
			'worker_id' => array(
				'dropDownList',
				Yii::app()->enum->options('worker.providerAndDealer'),
				'visible' => 'Yii::app()->adminUser->role == AdminUser::ROLE_OPERATOR',
			),
			'status' => false,
			'logo' => array('class' => 'FileField'),
			'thumb' => array('class' => 'FileField'),
			'template'=> array('dropDownList',Yii::app()->enum->options('mall.template')),
			'is_open' => array('dropDownList',Yii::app()->enum->options('yes2no')),
			'desc' =>array('textArea', array('rows'=>3, 'cols'=>100)),
		)
	),
	'_import' => array(
		array('*', 'actions.edit//*'),
	),
);